package com.geek.factory.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.geek.factory.entity.Productx;
import com.geek.factory.mapper.ProductxMapper;
import com.geek.factory.service.ProductxService;
import org.springframework.stereotype.Service;

@Service
public class ProductxServiceImpl extends ServiceImpl<ProductxMapper, Productx> implements ProductxService {

/*

    @Override
    public IPage<Product> getProductPage(ProductQueryVO queryVO) {
        return null;
    }

    @Override
    public Product getProductById(Integer id) {
        return baseMapper.selectById(id);
    }

    @Override
    public boolean addProduct(Product product) {
        return baseMapper.insert(product) > 0;
    }

    @Override
    public boolean updateProduct(Product product) {
        return baseMapper.updateById(product) > 0;
    }

    @Override
    public boolean deleteProduct(Integer id) {
        return baseMapper.deleteById(id) > 0;
    }

    @Override
    public boolean deleteProductBatch(List<Integer> ids) {
        return baseMapper.deleteBatchIds(ids) > 0;
    }

    @Override
    public List<Product> getAllProducts() {
        return Collections.emptyList();
    }

*/

}
